@import (reference) "base";

:root {
  --border-color: #ced4da;
  --zindex-pop: 1200;
  --zindex-drop: 1100;
  --zindex-tip: 1150;
}

.iconfont {
  font-family: "iconfont" !important;
  font-size: 16px;
  font-style: normal;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

i:before{
   .iconfont;
}

i.active{
  .text-primary;
}

.iCommit:before {
  .iconfont;
  content: "\e62c";
}

.iConfirm:before {
  .iconfont;
  content: "\e62c";
}

.iDetail:before {
  .iconfont;
  content: "\e617";
}

.iView:before {
  .iconfont;
  content: "\e65d";
}

.iSort:before {
  .iconfont;
  content: "\f5e7";
}

.iSortAsc:before {
  .iconfont;
  content: "\e600";
}

.iSortDesc:before {
  .iconfont;
  content: "\e601";
}

.iFilter:before {
  content: "\e642";
}

.iFilterNo:before {
  content: "\e642";
}

.iTreeExpand0:before {
  .iconfont;
  content: "\e797";
}

.iTreeExpand1:before {
  .iconfont;
  content: "\e796";
}

.iCheck0:before {
  .iconfont;
  content: "\e615";
}

.iCheck1:before {
  .iconfont;
  content: "\e606";
}

.iCheck2:before {
  .iconfont;
  content: "\e7cb";
}

.iNull:before {
  .iconfont;
  content: "\e8ff";
}

.iExpand0:before {
  .iconfont;
  content: "\e7eb";
}

.iExpand1:before {
  .iconfont;
  content: "\e7ee";
}

.iSearch:before {
  .iconfont;
  content: "\e603";
}

.iReset:before {
  .iconfont;
  content: "\e739";
}

.iCreate:before {
  .iconfont;
  content: "\e678";
}

.iEdit:before {
  .iconfont;
  content: "\e723";
}

.iDelete:before {
  .iconfont;
  content: "\e634";
}

.iBatchDelete:before {
  .iconfont;
  content: "\e60e";
}

.iRefresh:before {
  .iconfont;
  content: "\e622";
}

.iExportCsv:before {
  .iconfont;
  content: "\e69c";
}

.iExportXls:before {
  .iconfont;
  content: "\e62e";
}

.iPrint:before {
  .iconfont;
  content: "\e621";
}

.iSet:before {
  .iconfont;
  content: "\e604";
}

.iFullScreen:before {
  .iconfont;
  content: '\e9cf';
}

.iExitFullScreen:before {
  .iconfont;
  content: '\e9cd';
}

.iClose:before {
  .iconfont;
  content: "\e6e9";
}

.iUploadImg:before {
  .iconfont;
  content: "\e609";
}

.iZoomIn:before {
  .iconfont;
  content: "\e6f0";
}

.iZoomOut:before {
  .iconfont;
  content: "\e6f1";
}

.iActual:before {
  .iconfont;
  content: "\e833";
}

.iRotateLeft:before {
  .iconfont;
  content: "\e65a";
}

.iRotateRight:before {
  .iconfont;
  content: "\e65c";
}

.iClip:before {
  .iconfont;
  content: "\e6dc";
}

.iLoading:before {
  .iconfont;
  content: "\e891";
}

.iCloudUpload:before{
  .iconfont;
  content: "\e7d9";
}

.iUp:before {
  .iconfont;
  content: "\e8f0";
}

.iDown:before {
  .iconfont;
  content: "\f5e8";
}

.iStarLeft:before {
  .iconfont;
  content: "\e69e";
}

.iStarRight:before {
  .iconfont;
  content: "\e633";
}

.iMenuDropdown:before {
  .iconfont;
  content: "\e7ee";
}

.iMenuDropRight:before {
  .iconfont;
  content: "\e7eb";
}


.iToggle:before {
  .iconfont;
  content: "\e656";
}

.icon-sheng:before {
  .iconfont;
  content: "\e760";
}

.icon-shi:before {
  .iconfont;
  content: "\e764";
}

.icon-qu:before {
  .iconfont;
  content: "\e763";
}

.flat {
  .p-1;
  .m-1;
  .xborder-radius;
  color: #34495e;

}

.flat:hover {
  background-color: #e0e0e0;
}

.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* border*/
.xborder {
  border: 1px solid var(--border-color);
}

.xborder-radius {
  border-radius: 0.25rem;
}

.angle {
  height: 10px;
  width: 10px;
  background: white;
  border-right: 1px solid var(--border-color);
  border-top: 1px solid var(--border-color);
}

.top-angle {
  .angle;
  transform: translateY(-5px) rotate(135deg);
}

.left-angle {
  .angle;
  transform: translateX(-5px) rotate(45deg);
}

.right-angle {
  .angle;
  transform: translateX(5px) rotate(225deg);
}

.down-angle {
  .angle;
  transform: translateY(5px) rotate(-45deg);
}

.shadow {
  box-shadow: 10px 10px 5px #ccc;
}

.axisx-center {
  margin: auto;
  left: 50%;
  transform: translateX(-50%);
}

.axisy-center {
  margin: auto;
  transform: translateY(50%);
}

.axis-center {
  margin: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.min-w-20 {
  min-width: 20rem;
}

.min-w-15 {
  min-width: 15rem;
}

.min-w-10 {
  min-width: 10rem;
}

.confirm {
  position: absolute;
  z-index: var(--zindex-tip);
  .xborder-radius;
}

.confirm .top,
.confirm .topleft,
.confirm .topright {
  align-items: center;
  flex-direction: column;
}

.confirm .left {
  align-items: center;
}

.confirm .right {
  align-items: center;
  flex-direction: row-reverse;
}

.confirm .downleft,
.confirm .downright,
.confirm .down {
  align-items: center;
  flex-direction: column-reverse;
}

.confirm div[data-key="type"] {
  .d-flex;
}

.confirm div[data-key="main"] {
  .min-w-15;
  .xborder;
  .bg-white;
  .xborder-radius;
  .shadow;
}

.confirm div[data-key="head"] {
  .xborder;
  .xborder-radius;
}

.confirm span {
  display: flex;
  align-items: center;
}

.confirm span:before {
  .mr-2;
  font-size: 24px !important;
}

.confirm .info span:before {
  .iconfont;
  content: "\e844";
  .text-info;
}

.confirm .error span:before {
  .iconfont;
  content: "\e62b";
  .text-danger;
}

.confirm .success span:before {
  .iconfont;
  content: "\e72e";
  .text-success;
}

.confirm .warn span:before {
  .iconfont;
  .text-warning;
  content: "\e848";
}

.confirm div[data-key="body"] {
  .p-4;
}

.confirm div[data-key="footer"] {
  border-top: 1px solid var(--border-color);
  padding: 6px;
  text-align: right;
}



.top div[data-key="angle"] {
  .top-angle;
}

.left div[data-key="angle"] {
  .left-angle;
}

.right div[data-key="angle"] {
  .right-angle;
}

.down div[data-key="angle"] {
  .down-angle;
}

.downright div[data-key="angle"] {
  .angle;
  margin-left: auto;
  transform: translateY(5px) translateX(-10px) rotate(-45deg);
}

.downleft div[data-key="angle"] {
  .angle;
  margin-right: auto;
  transform: translateY(5px) translateX(10px) rotate(-45deg);
}

.topright div[data-key="angle"] {
  .angle;
  margin-left: auto;
  transform: translateY(-5px) translateX(-10px) rotate(135deg);
}

.topleft div[data-key="angle"] {
  .angle;
  margin-right: auto;
  transform: translateY(-5px) translateX(10px) rotate(135deg);
}


.confirm-modal>div{
  position: absolute;
  .axis-center;
  .min-w-20;
}

.confirm-modal span:before {
  .m-2;
  font-size: 24px !important;
}

.confirm-modal .info:before {
  .iconfont;
  content: "\e844";
  .text-info;
}

.confirm-modal .error:before {
  .iconfont;
  content: "\e62b";
  .text-danger;
}

.confirm-modal .success:before {
  .iconfont;
  content: "\e72e";
  .text-success;
}

.confirm-modal .warn:before {
  .iconfont;
  .text-warning;
  content: "\e848";
}

.x-center {
  justify-content: center;
}

.x-right {
  justify-content: flex-end;
}

.xAlert {
  position: fixed;
  left: 50%;
  .axisx-center;
  z-index: var(--zindex-pop);

}

.xAlert div[data-key="content"] {
  padding: 15px 30px;
}

.xAlert div[data-key="type"] {
  display: inline-flex;
  align-items: center;
  .min-w-20;
  .bg-light;
  .xborder;
  .xborder-radius;
  .shadow;
}

.xAlert span {
  display: flex;
  align-items: center;
}

.xAlert span[data-key="alert"]:before {
  .mr-1;
  font-size: 24px !important;
}

.xAlert .info span:before {
  .iconfont;
  content: "\e844";
  .text-info;
}

.xAlert .error span:before {
  .iconfont;
  content: "\e62b";
  .text-danger;
}

.xAlert .success span:before {
  .iconfont;
  content: "\e72e";
  .text-success;
}

.xAlert .warn span:before {
  .iconfont;
  .text-warning;
  content: "\e848";
}

.xAlert div[data-key="tail"] {
  margin-left: auto;
  .p-1;
}

.xcontrol-icon {
  width: 100%;
  padding: .375rem 1.5rem .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.xcontrol {
  padding: .375rem .75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.xhead {
  box-sizing: border-box;
  width: calc(100% - 1.5rem);
  position: relative;
  .xborder;
  .xborder-radius;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.xmain {
  position: absolute;
  .mt-1;
  .xborder-radius;
  z-index: var(--zindex-drop);
  background-color: white;
}

.xactive {
  color: #212529;
  background-color: #fff;
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);
}

;

.after-icon-set {
  top: 7px;
  right: 5px;
  position: absolute;
  color: var(--bs-gray);
}

.before-icon-set {
  top: 7px;
  right: -22px;
  position: absolute;
}

.badge-sm {
  width: 5px;
  height: 5px;
  border-radius: 3px;
}

.xhead.active {
  .xactive;
}

/*  :before 用来 放置 check result
    :after 用来放置 控件的 icon */

.valid:before {
  .iconfont;
  .before-icon-set;
  .text-success;
  content: "\e72e";
}

.invalid:before {
  .iconfont;
  .before-icon-set;
  .text-danger;
  content: "\e62b";
}

/*后面带 图标的控件*/
.xinput-icon {
  outline: none;
  border: none;
  width: 100%;
  .xcontrol-icon;
}

.xinput {
  outline: none;
  border: none;
  width: 100%;
  .xcontrol;
}

.date {
  position: relative;
  .ml-1;
  .mr-1;
}

.date div[data-key="date-head"] {
  .xhead;
}

/*  :before 用来 放置 check result
    :after 用来放置 控件的 icon */

.date div[data-key="date-head"].active {
  .xactive;
}

.date div[data-key="date-head"]:after {
  .after-icon-set;
  content: "\e619";
}

.date div[data-key="date-hint"] {
  text-align: center;
  .text-danger;
  font-size: 12px;
  border-top: 1px solid var(--border-color);
}

.date div[data-key="date-title"] {
  .flex-center;
  border-top: 1px solid var(--border-color);
}

.date i {
  cursor: pointer;
  .m-1;
}

.date i[data-key="date-double-pre"]:before {
  content: "\e7ef";
}

.date i[data-key="date-pre"]:before {
  
 content: "\e7ec";
}

.date i[data-key="date-double-next"]:before {
  
  content: "\e7f0";
}

.date i[data-key="date-next"]:before {
  
  content: "\e7eb";
}

.date i[data-key="hour-next"]:before,
.date i[data-key="minute-next"]:before,
.date i[data-key="second-next"]:before {
  
  content: "\e7eb";
}

.date i[data-key="time-show"]:before {
  
  content: "\e8eb";
}

.date i[data-key="date-show"]:before {
  
  content: "\e619";
}

.date div[data-key="date-main"] {
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  width: 20rem;
}

.date div[data-key="date-main"] span {
  display: inline-block;
  .p-1;
  cursor: pointer;
}

.date table {
  width: 100%;
  border-collapse: collapse;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.date tbody span {
  cursor: pointer;
}

.date tbody span:hover {
  .text-primary;
}

.date td {
  text-align: center;
  .xborder;
}

.date tr > :first-child {
  border-left: 0px !important;
}

.date tr > :last-child {
  border-right: 0px !important;
}

.date div[data-key="date-item"] {
  .flex-center;
  min-width: 2.5em;
}

.date div[data-key="date-item"] i {
  margin-right: auto;
  cursor: pointer;
}

.date span.out {
  color: var(--bs-gray-500);
}

.date span.inside {
  .text-primary;
}

.date span.now:after {
  position: absolute;
  content: '';
  .badge-sm;
  .bg-danger;
}

.date div[data-key="date-footer"] {
  display: flex;
  align-items: center;
  .p-1;
  border-bottom: 1px solid var(--border-color);
}

.date div[data-key="date-footer"] i {
  .text-primary;
  cursor: pointer;
}

.date div[data-key="date-footer"] span {
  .text-primary;
  cursor: pointer;
}

.date div[data-key="date-footer"] button {
  .mr-1;
}

.date div[data-key="date-footer"] button:first-of-type {
  margin-left: auto;
}

.cascade {
  position: relative;
  .ml-1;
  .mr-1;
}

.cascade div[data-key="head"]:after {
  .after-icon-set;
  content: "\e616";
}

.cascade div[data-key="main"] {
  width: calc(100% - 1.5rem);
  .xborder;
}

.cascade table {
  border-spacing: 0px;
  width: 100%;
}

.cascade label {
  .p-1;
  color: var(--bs-secondary);
}

.cascade span {
  box-sizing: content-box;
  .p-1;
  cursor: pointer;
}

.cascade span.active,
.cascade span:hover {
  .text-primary;
}

.cascade div[data-key="tab"] {
  width: 100%;
  background-color: var(--bs-light);
  border-bottom: 1px solid var(--border-color);
  .xborder-radius;
  display: flex;
}

.cascade div[data-key="tab"] span.active {
  margin-left: -1px;
  margin-bottom: -2px;
  border-left: 1px solid var(--border-color);
  border-right: 1px solid var(--border-color);
  background-color: white;
}

.cascade td {
  min-width: 4em;
  vertical-align: top;
}

.cascade div[data-key="cell"] {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.cascade div[data-key="footer"] {
  text-align: right;
  border-top: 1px solid var(--border-color);
  .p-1;
}

.mselect {
  position: relative;
  .ml-1;
  .mr-1;
}

.mselect div[data-key="head"]:after {
  
  .after-icon-set;
  content: "\e616";
}

.mselect div[data-key="main"] {
  width: calc(100% - 1.5rem);
  .xborder;
}

.mselect div[data-key="body"] {
  overflow-y: scroll;
  height: 15rem;
}

.mselect table {
  border-spacing: 0px;
  width: 100%;
}

.mselect label {
  margin-left: 10px;
  .p-1;
}

.mselect label[data-key="tag"] {
  color: var(--bs-secondary);
}

.mselect div[data-key="footer"] {
  text-align: right;
  border-top: 1px solid var(--border-color);
  .p-1;
}

.zinput {
  position: relative;
  .ml-1;
  .mr-1;
}

.zinput ul,
.zinput li {
  margin: 0px;
  padding: 0px;
  list-style: none;
  list-style-type: none;
  padding-inline-start: 0;
}

.zinput div[data-key="main"] {
  width: calc(100% - 1.5rem);
  .xborder;
}

.zinput div[data-key="main"] span {
  display: block;
  .p-1;
  cursor: pointer;
}

.zinput div[data-key="main"] span:hover,
.zinput div[data-key="main"] span.active {
  .text-primary;
  .bg-light;
}

.input {
  position: relative;
  .ml-1;
  .mr-1;
}

.input div[data-key ="checkbox"],
.input div[data-key ="radio"] {
  .xinput;
  .flex-center;
}

.input div[data-key ="checkbox"] input,
.input div[data-key ="radio"] input {
  .mr-1;
}

.input label {
  .ml-1;
  .mr-1;
}

/*for rate*/
.input div[data-key="rate"] {
  .flex-center;
  height: 36px;

}

.star-left:before {
  
  content: "\e69e";
  font-size: 20px;
}

.star-right:before {
  
  content: "\e633";
  font-size: 20px;
}

.input span[data-key="span-rate"] {
  font-size: 0px !important;
  .ml-1;
  .mr-1;
}

.input span[data-key="span-rate"] i {
  color: #ccc;
  cursor: pointer;
  margin: 0px !important;
  padding: 0px !important;
}

.input span[data-key="span-rate"] i.bright {
  color: gold;
}

/* for switch*/
.input div[data-key ="switch"] {
  height: 36px;
  .flex-center;
  font-size: 12px;
}

.input span[data-key="span-switch"] {
  display: inline-flex;
  justify-content: space-between;
  color: #fff;
  background-color: var(--bs-gray);
  border-radius: 20px;
  align-items: center;
  cursor: pointer;
  .pl-1;
  .pr-1;
}

.switch-circle:before {
  .iconfont;
  content: "\e649";
}

.input span[data-key="span-switch"] i,
.input span[data-key="span-switch"] span {
  .mr-1;
  .ml-1;
}


.input .checked span[data-key="span-switch"] {
  background-color: #40a9ff;
  flex-direction: row-reverse
}

.input .checked span[data-key="span-switch"] i {
  color: gold;
}

.input.switch-4 span[data-key="switch-name"] {
   width: 3rem;
}

.input.switch-3 span[data-key="switch-name"] {
  width: 2.5rem;
}

.input.switch-2 span[data-key="switch-name"] {
  width: 2rem;
}

.input.switch-1 span[data-key="switch-name"] {
  width: 2rem;
}


/* for file*/
.input input[type="file"] {
  outline: none;
  border: none;
  width: 100%;
  padding: .19rem 0.75rem;
  color: #212529;
  background-color: #fff;
  background-clip: padding-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border-radius: .25rem;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

/* for textarea*/
.input textarea {
  width: 100%;
  border-radius: 4px;
  border: none;
}

.input textarea:focus {
  outline: none;
}

/* for range */
.input div[data-key ="range"] {
  width: 100%;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.input div[data-key ="range"] input {
  width: calc(100% - 3rem);
  .ml-1;
}

.input div[data-key ="range"] span {
  width: 3rem;
  .flex-center;
}

.input input[type="range"]:focus,
.input input[data-key ="input-range"]:focus {
  outline: none;
}

/*for color*/
.input input[data-key="input-color"] {
  height: 36px;
  padding: 0.375rem 0.75rem !important;
}

/*for modal*/
.input .input-modal:after {
  
  .after-icon-set;
  content: "\e6cb";
}

/* 行号多行文本*/
.textarea {
  position: relative;
  .mr-1;
  .ml-1;
}

.textarea div[type="head"] {
  display: flex;
  .xborder;
  .xborder-radius;
}

.textarea div[type="line"] {
  text-align: center;
  background-color: var(--bs-light);
  border-right: 1px solid var(--border-color);
  border-radius: 3px 0px 0px 3px;
  width: 3rem;
  .p-2;
}

.textarea div[type="number"] {
  color: var(--bs-gray-600);
  line-height: 1.5;
  font-size: 1rem;
}

.textarea div[type="content"] {
  flex-grow: 1;
}

.textarea textarea {
  width: 100%;
  box-sizing: border-box;
  border: none;
  border-radius: 3px;
  resize: none;
  overflow: hidden;
  font-size: 1rem;
  line-height: 1.5;
  .p-2;
  height: 100%;
}

.textarea textarea:focus {
  outline: none;
}

.ximage {
  position: fixed;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: var(--zindex-pop);
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.ximage img {
  position: absolute;
}

.upload {
  position: relative;
  .ml-1;
  .mr-1;
}

.upload table {
  width: 100%;
}

.upload div[data-key="item"] {
  margin: 4px;
  border: 1px solid var(--border-color);
  .flex-center;
  flex-direction: column;
  border-radius: 3px;
}

.upload div[data-key="item-main"] {
  width: 120px;
  height: 120px;
  .flex-center;
  flex-direction: column;
}

.upload span[data-key="file-name"] {
  width: 100%;
  text-align: center;
  padding: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  box-sizing: border-box;
}

.upload span[data-key="placeholder"] {
  color: #888;
}

.upload span[data-key="placeholder"],
.upload span[data-key="percent"],
.upload span[data-key="error"],
.upload span[data-key="file-size"] {
  font-size: 12px;
  padding: 4px;
}

.upload div[data-key="item-footer"] {
  width: 100%;
  border-top: 1px solid var(--border-color);
  display: flex;
  justify-content: center;
  align-items: center;
}

.upload img[data-key="img"] {
  padding: 1px;
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
  box-sizing: border-box;
}

.upload div[data-key="view"] {
  height: 480px;
  width: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.upload div[data-key="view"] img {
  height: auto;
  width: auto;
  max-width: 100%;
  max-height: 100%;
}

i[data-key="update"]:before {
  
  content: '\e7d9'
}

i[data-key="upload"]:before {
  
  content: '\e7d9'
}

i[data-key="delete"]:before {
  
  content: '\e6e9';
}

.upload i {
  margin: 2px 0px;
  color: #FFF;
  background-color: #409efe;
  padding: 4px;
  cursor: pointer;
  border-right: 1px solid var(--border-color);
}

.upload i:hover {
  color: #FFF;
  background-color: #3498DB;
}

.btn-group {
  position: relative;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  vertical-align: middle;
}

.btn-group > :first-child {
  border-top-left-radius: 3px;
  border-bottom-left-radius: 3px;
}

.btn-group > :last-child {
  border-top-right-radius: 3px;
  border-bottom-right-radius: 3px;
  border-right: none;
}

.upload-file {
  position: relative;
  .ml-1;
  .mr-1;
}

.upload-file div[data-key="head"] {
  border: 1px solid #aaa;
  border-radius: 3px;
}

.upload-file table {
  width: 100%;
}

.upload-file div[data-key="item"] {
  padding: 4px;
  border: 1px solid #aaa;
  width: 100%;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.upload-file div[data-key="item-main"] {
  display: inline-flex;
  height: 1.8em;
}

.upload-file span[data-key="file-name"] {
  width: 150px;
  padding: 4px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}

.upload-file span[data-key="placeholder"],
.upload-file span[data-key="percent"],
.upload-file span[data-key="error"],
.upload-file span[data-key="file-size"] {
  padding: 4px;
  text-align: right;
}

.upload-file span[data-key="percent"],
.upload-file span[data-key="error"] {
  color: #ff3f3f;
}

.upload-file div[data-key="item-footer"] {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.8em;
}

.upload-file div[data-key="item-footer"] i {

  color: #FFF;
  background-color: #409efe;
  padding: 0px 4px;
  cursor: pointer;
  border-right: 1px solid #f6f6f6;
}

.upload-file div[data-key="item-footer"] i:hover {
  color: #FFF;
  background-color: #3498DB;
}

.select {
  position: relative;
  .ml-1;
  .mr-1;
}

.select div[data-key="head"]:after {
  
  .after-icon-set;
  content: "\e616";
}

.select div[data-key="main"] {
  width: calc(100% - 1.5rem);
  .xborder;
  max-height: 20rem;
  overflow-y: scroll;
}

.select ul,
.select li {
  margin: 0px;
  list-style: none;
  list-style-type: none;
  padding-inline-start: 0;
  border-radius: 3px;
}

.select li {
  padding: 4px;
}

.select li[data-key="item"] {
  padding: 4px 32px !important;
}

.select li i,
.select li span {
  padding: 2px 8px;
}

.select li[data-key="item"]:hover,
.select li[data-key="item"].active {
  color: #409efe;
  background-color: #f2f2f2;
}


.panel div[type="group"] {
  border-bottom: 2px solid var(--bs-gray);
}

.panel div[type="panel-item"] {
  display: flex;
  align-items: center;
}

.panel div[type="panel-label"] {
  width: 6.5rem;
  text-align: right;
  .pr-1;
}

.panel div[type="panel-control"] {
  flex: auto;
}



.panel .mandatory {
  position: relative;
}

.panel .mandatory:after {
  position: absolute;
  top: -6px;
  left: -16px;
  color: orangered;
  .iconfont;
  font-size: 8px !important;
  content: "\e6b4";
}

.panel-v div[data-key="panel-control"] {
  flex: auto;
}

.panel-v div[data-key="panel-label"] {
  .ml-2;
  .mt-4;
}

.panel-v .mandatory {
  position: relative;
}

.panel-v .mandatory:after {
  position: absolute;
  top: -2px;
  right: -16px;
  color: orangered;
  .iconfont;
  font-size: 8px !important;
  content: "\e6b4";
}

/*样式 ： xtable 开始  */
.xtable {
  position: relative;
  .m-2;

}

.xtable table {
  width: 100%;
  border: 1px solid var(--border-color);
  border-collapse: collapse;
}

.xtable thead {
  background-color: #f8f8f8;
}

.xtable thead i{
   color:var(--bs-gray-500);
  .ml-1;
  cursor: pointer;
}
/*
.xtable thead i.active{
  .text-primary;
}
*/
/*
.xtable tbody > :nth-of-type(2n) {
  background-color: #f4f4f4;
} */


.xtable tbody tr:hover {
  background-color: #eee;
}


.xtable td {
  border: 1px solid #cecece;
  //border-bottom: 1px solid var(--border-color);
  //border-top: 1px solid var(--border-color);
}

.xtable tbody img {
  max-height: 48px;
  max-width: 96px;
  padding: 2px;
}


.xtable div[type="no-data"] {
  width: 100%;
  text-align: center;
}

.fixed-table {
  overflow-x: scroll;
}

.fixed-table .action{
  width:12rem;
}

.fixed-table table{
  border-collapse: separate !important;
  border-spacing: 0!important;
  margin: 0!important;
  padding: 0!important;
  border: none;
}

.fixed-table td{
  border: none;
}

.fixed-table table{
  border-bottom:1px solid var(--border-color) ;
}

.fixed-table td.fix-left,
.fixed-table td.fix-right,
.fixed-table td.fix-top{
  position: sticky !important;
  background-color: #f8f8f8;
}


.fixed-table td{
  border-top:1px solid var(--border-color) ;
  border-left: 1px solid var(--border-color)
}

.fixed-table tr td:last-child{
  border-right:1px solid var(--border-color) ;
}



/*
.fixed-table fix-left>div,
.fixed-table fix-right>div,
.fixed-table fix-top>div{
   z-index: 2000;
}
*/

.modal {
  background: rgba(0, 0, 0, 0.7);
}


.panel div[type="panel-item"] {
  display: flex;
  align-items: center;
  .m-3;
}

.panel div[type="panel-label"] {
  width: 6rem;
  text-align: right;
}


.panel div[type="group"] {
   .m-3;
   border-bottom: 3px solid #d46b08;
}

.panel .cell{
  flex-grow: 1;
}

.btn span:before {
  .mr-1;
}

.set-cols li {
  list-style: none;
  list-style-type: none;
}

.set-cols div[data-key="panel"] {
  .m-2;
  max-height: 40rem;
  overflow-y: scroll;
  .xborder;
  .xborder-radius;
}

.set-cols div[data-key="panel"] li {
  .m-2;
  .p-2;
  .xborder;
  .xborder-radius;
}

.set-cols .iCheck1:before,
.set-cols .iCheck2:before {
  color: var(--bs-primary);
}

.set-cols .iCheck0:before {
  color: var(--bs-gray-500);
}


.crud button{
  font-size: 0.875rem;
  border-radius: 0.2rem;
  outline: none;
  border: none;
}

.crud button span:before{
  .iconfont;
  .mr-2;
}

.crud .btn-query span:before{
  content:"\e626" ;
}

.crud .btn-reset span:before{
  content:"\e63e" ;
}
.crud .btn-create{
  width: 6rem;
}
.crud .btn-create span:before{
  content:"\e64a" ;
}

.crud .btn-batch-delete span:before{
  content:"\e634 " ;
}

.crud .btn-delete{
   .text-danger;
}

.crud .btn-delete:active,
.crud .btn-delete:hover{
  color: white !important;
  .bg-danger;
}

.crud .btn-view{
  .text-primary;
}
.crud .btn-view:active,
.crud .btn-view:hover{
  color: white!important;
  .bg-primary;
}

.crud .btn-edit{
  .text-warning;
}

.crud .btn-edit:active,
.crud .btn-edit:hover{
  color: white !important;
  .bg-warning;
}

.crud-query {
  width:100%;
  display: inline-flex;
  align-items: center;
  .xborder;
  .xborder-radius;
  .mb-3;
  .bg-white;
  .p-4;
}

.crud-query-panel {
  width: calc(100% - 20rem);
}

.crud-query-btn {
  width: 20rem;
}

.crud-toolbar {
  width: 100%;
  display: inline-flex;
  align-items: center;
  .xborder;
  .xborder-radius;
  .bg-white;
  .mb-3;
  .p-4;

}

.crud-toolbar-left {
  width: 60%;
}

.crud-toolbar-left button {
  .ml-2;
  .mr-2;
}

.crud-toolbar-right {
  width: 40%;
  text-align: right;
  .p-2;
}

.crud-table {
  .xborder;
  .xborder-radius;
  .bg-white;
  .p-2;
}

.ginput {
  .ml-1;
  .mr-1;
}

.ghead {
  box-sizing: border-box;
  width: calc(100% - 1.5rem);
  position: relative;
  .xborder-radius;
  transition: border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}

.crop .body {
  .flex-center;
  .flex-column;
}

.crop .canvas-panel {
  position: relative;
  overflow: hidden;
  cursor: move;
  background-color: var(--bs-gray-200);
  .m-1;
}

.crop .view-canvas {
  position: absolute;
}

.crop .tracker {
  position: absolute;
  z-index: 300;
}

.crop .tracker > div {
  width: 10px;
  height: 10px;
  position: absolute;
}

.crop .tracker-angle1 {
  left: 0;
  top: 0;
  border-left: 2px solid red;
  border-top: 2px solid red;
  border-top-left-radius: 3px;
}

.crop .tracker-angle2 {
  right: 0;
  top: 0;
  border-right: 2px solid red;
  border-top: 2px solid red;
  border-top-right-radius: 3px;
}

.crop .tracker-angle3 {
  right: 0;
  bottom: 0;
  border-right: 2px solid red;
  border-bottom: 2px solid red;
  border-bottom-right-radius: 3px;
}

.crop .tracker-angle4 {
  left: 0;
  bottom: 0;
  border-left: 2px solid red;
  border-bottom: 2px solid red;
  border-bottom-left-radius: 3px;
}

.crop .tracker-center {
  width:5px !important;
  height: 5px !important;
  background-color: red;
  border-radius: 50%;
  .axis-center;
}

.crop .footer {
  .p-2;
  color: var(--bs-gray-700);
  .flex-center;
}

.crop .clip {
  .p-1;
  .flex-center;
  position: relative;
}


.crop .unupload:after{
  content: '';
  position: absolute;
  top:3px;
  right:3px;
  background-image: url(../img/unupload.png);
  width: 64px;
  height: 64px;
}

.crop .uploaded:after{
  content: '';
  position: absolute;
  top:3px;
  right:3px;
  background-image: url(../img/uploaded.png);
  width: 64px;
  height: 64px;
}

.crop .clip-canvas {
  background-color: var(--bs-gray-200);
}

.crop .view-title,
.crop .clip-title{
  position: absolute;
  color: var(--bs-gray-400);
  z-index: 100;
}

.crop .view-title{
  .axis-center;
}

.crop .view-title div{
  text-align: center;
}

.hint {
  position: absolute;
  display: inline;
  z-index: var(--zindex-pop);
  .xborder-radius;
  .p-1;
  background-color: var(--bs-gray-600);
  color: white;
  opacity: 0.5;
}

.hint span {
  .p-2;
}

.spin {
  position: absolute;
  .flex-center;
  z-index: var(--zindex-pop);
}

.spin span {
  color: blue;
  transform: rotate(45deg);
  -webkit-animation: spinRotate 2s infinite linear;
  animation: spinRotate 2s infinite linear;
}

.spin span:before {
  font-size: 24px !important;
}

@keyframes spinRotate {
  to {
    transform: rotate(405deg)
  }
}

.thumbnail .item {
  .m-1;
  .xborder;
  .xborder-radius;

}

.thumbnail .item-empty,
.thumbnail .item-image{
  .flex-center;
  position: relative;
  color:var(--bs-gray-400);
  font-size: 10px;
}

.thumbnail .unupload:after{
  content: '';
  position: absolute;
  top:1px;
  right:1px;
  background-image: url(../img/unupload.png);
  width: 64px;
  height: 64px;
}

.thumbnail .uploaded:after{
  content: '';
  position: absolute;
  top:1px;
  right:1px;
  background-image: url(../img/uploaded.png);
  width: 64px;
  height: 64px;
}

.thumbnail .footer{
  width: 100%;
  .p-1;
  .flex-center;
  border-top: 1px solid var(--border-color);
}

/*
.thumbnail .item-image img{
  max-width:300px;
  max-height: 300px;
}
*/

.cell{
  .d-flex;
  align-items: center;
  flex-wrap: wrap;
  padding: 0.25rem 0.5rem;
}

.cell.center{
  justify-content: center;
}

.cell.right{
  justify-content: flex-end;
}

.cell textarea{
  width:100%;
  outline: none;
}


.cell img{
  max-height: 15rem;
  max-width: 15rem;
  .m-1;
}


.cell .level-1 {
  padding-left: 0px !important;
  margin: 0px;
}

.cell .level-2 {
  padding-left: 2em !important;
  margin: 0px;
}

.cell .level-3 {
  padding-left: 4em !important;
  margin: 0px;
}

.cell .level-4 {
  padding-left: 6em !important;
  margin: 0px;
}

.cell i[type="tree-check"],
.cell i[type="tree-expand"]
{
  cursor: pointer;
}

.cell i[type="tree-expand"]{
   .text-primary;
}

.cell i[type="tree-check"]{
   color:var(--bs-gray-600);
}

.cell i.iCheck1,
.cell i.iCheck2,
{
  .text-primary;
}

.cell .progress{
  width:100%;
}

.cell .flat.error{
  .text-danger;
}

.cell .flat.error:hover{
  .text-white;
  .bg-danger;
}

.cell .flat.success{
  .text-success;
}

.cell .flat.success:hover{
  .text-white;
  .bg-success;
}

.cell .flat.warn{
  .text-warning;
}

.cell .flat.warn:hover{
  .text-white;
  .bg-warning;
}

.cell .flat.info{
  .text-info;
}

.cell .flat.info:hover{
  .text-white;
  .bg-info;
}

.cell .flat.primary{
  .text-primary;
}

.cell .flat.primary:hover{
  .text-white;
  .bg-primary;
}
div[type="label"].cell{
  width: 6rem;
  flex-grow: 0 !important;
  justify-content: flex-end;
}

div[type="xtextarea"].cell{
  display: block!important;
}


div[type="data"].cell img{
  max-width:2rem;
  max-height: 2rem;
}
span[type="badge"]{
  position: relative;
}

span[type="badge"]:after{
  position: absolute;
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 4px;
  margin-left: 4px;
  top:-4px;
  right: -15px;
}

span[type="badge"].success:after{
  .bg-success;
}

span[type="badge"].warn:after{
  .bg-warning;
}

span[type="badge"].error:after{
  .bg-danger;
}
span[type="badge"].info:after{
  .bg-info;
}

span[type="tag"]{
  font-size: 10px;
  .p-1;
  .mr-1;
  .xborder-radius;
}

span[type="tag"].purple {
  color: #531dab;
  background: #f9f0ff;
  border: 1px solid #d3adf7;
}

span[type="tag"].orange {
  color: #d46b08;
  background: #fff7e6;
  border: 1px solid #ffd591;

}

span[type="tag"].volcano {
  color: #d4380d;
  background: #fff2e8;
  border: 1px solid #ffbb96;
}

span[type="tag"].green {
  color: #389e0d;
  background: #f6ffed;
  border: 1px solid #b7eb8f;
}

span[type="tag"].cyan {
  color: #08979c;
  background: #e6fffb;
  border: 1px solid #87e8de;

}

span[type="tag"].gold {
  color: #d48806;
  background: #fffbe6;
  border: 1px solid #ffe58f;
}

span[type="rate"]{
  font-size: 0px !important;
  color:var(--bs-gray-500);
}

span[type="rate"] i{
  .p-0;
  .m-0;
}

span[type="rate"] .bright {
  .text-warning
}

span[type="button"]:before{
   .m-1;
}

div[type="expand"] i {
  .text-primary;
  cursor: pointer;
}

div[type="tree"] i {
  .text-primary;
  cursor: pointer;
  .mr-1;
}

.cell.error{
  .bg-danger;
  .text-white;
}

.cell.success{
  .bg-success;
  .text-white;
}

.cell.primary{
  .bg-primary;
  .text-white;
}

div[type="search"]{
  position: relative;
  flex-grow: 1;
}
div[type="search"]:before{
  .text-primary;
  position: absolute;
  top:8px;
  right:4px;
}
div[type="search"] input{
  width: 100%;
  .pr-4;
}

span[type="filter"]{
  cursor: pointer;
}

span[type="filter-all"]:before,
span[type="filter"]:before{
  .text-primary;
  .m-2;
}
/* 菜单项配置 */
.cell.nav-link i,
.cell.nav-link span,
.cell.nav-link a
{
  .p-1;
}
.cell i[type="menu-dropdown"]{
  margin-left: auto;
}


.xpagination{
  display: inline-flex;
  align-items: center;
  .p-2;
}

.xpagination > div{
  .pl-2;
  .pr-2;
}

.xpagination ul{
   margin: 0 !important;
}

.xpagination select{
  text-align:  center;
}

.filter{
  background-color: white;
  .xborder;
  .xborder-radius;
}

.filter div[type="filter-head"] {
  border-bottom: 1px solid var(--border-color);
  .p-2;
  position: relative;
  background-color: #f7f7f7;
}

.filter div[type ="filter-main"] {
  max-height: 360px;
  overflow-y: scroll;
  .p-2;
}

.filter div[type="filter-footer"] {
  background-color: #f7f7f7;
  border-top: 1px solid var(--border-color);
}


.pivot{
  position: relative;
  padding: 5px 10px;
  overflow-x: scroll;
  overflow-y: scroll;
}
.pivot table{
  margin: auto;
  border: 1px solid  var(--border-color);
  border-collapse: collapse;
}

.pivot td{
  border: 1px solid var(--border-color);
}
.pivot i {
  color: var(--bs-gray-600);
  .m-1;
}
.pivot td[type="XTitle"],
.pivot td[type="YTitle"],
.pivot td[type="VTitle"],
.pivot td[type="X"],
.pivot  td[type="Y"]{
  background-color: #f0f0f0;
}

.cube{
  position: relative;
  padding: 5px 10px;
  overflow-x: scroll;
  overflow-y: scroll;
}

.cube table{
  margin: auto;
  border: 1px solid  var(--border-color);
  border-collapse: collapse;
}

.cube td{
  border: 1px solid var(--border-color);
}
.cube i {
  color: var(--bs-gray-600);
  .m-1;
}

.cube td[type="V"] img {
   max-height: 12px;
   max-width: 12px;
}

.cube td[type="XTitle"],
.cube td[type="YTitle"],
.cube td[type="VTitle"],
.cube td[type="X"],
.cube  td[type="Y"]{
  background-color: #f0f0f0;
}

.cube .spin{
  position: absolute!important;
  .axis-center;
}

.cube.sm{
  height: 800px;
  width:100%;
}

.tree ul,
.tree li{
  margin: 0px;
  padding: 0px;
  list-style: none;
  list-style-type: none;
}

.tree img{
  max-width: 1rem;
  max-height: 1rem;
}


